package com.smart_campus.sys.common;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <<<<<<< HEAD
 * Jsons数据实体
 */

//=======
// * 返回的json数据格式
// */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DataGridView {
    private Integer code = 0;
    private String msg = "";
    private Long count = 0L;
    private Object data;

    /**
     * @param count 数据总数
     * @param data  返回的数据
     */
    public DataGridView(Long count, Object data) {
        this.count = count;
        this.data = data;
    }

    /**
     * @param data 返回的数据
     */
    public DataGridView(Object data) {
        this.data = data;
    }
}